Gravity can go from an attractive force to being a repelling force when the energy density is high enough.
Sources: